package com.yunhe.java.day07;

/**
 * Created by Administrator on 2017/7/28 0028.
 */
public class Fengzhuang {
  private   String name;
  private   int age;
  private char sex;

    public Fengzhuang(){
    }
    public void setName(String name){
       this.name= name;
    }
    public String getName(){
        return this.name;
    }

    public void setAge(int age) {
        if(0<age&&age<100){
        this.age = age;
        }else{
            System.out.println(age +"岁不合理请再修改");
        }
    }
    public int getAge() {
        return age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}
